import { ref, reactive } from 'vue'

export default function usePagination (pageSize = 20) {
  const loading = ref(false)

  const pagination = reactive({
    pageNo: 1,
    pageSize,
    total: 0,
    pages: 0
  })

  return {
    loading,
    pagination
  }
}
